﻿using AnyCAD.Foundation;
using AnyCAD.NX.Command;
using AnyCAD.NX.Controls;
using AnyCAD.NX.ViewModel;

namespace AnyCAD.Modeling.Sphere
{
    /// <summary>
    /// UserControl1.xaml 的交互逻辑
    /// </summary>
    public partial class SphereView : AuStackView
    {
        public SphereView()
        {
            InitializeComponent();
        }
    }

    class NewSphereCommand : ComponentCommand
    {
        public NewSphereCommand()
        {
        }

        public override string GetName()
        {
            return nameof(SphereModel);
        }

        public override PersistentViewModel CreateViewModel(Element element, PropertyComponent component, Document doc)
        {
            return new SphereViewModel(element, component, doc);
        }

        public override AuStackView CreateView()
        {
            return new SphereView();
        }

    }
}
